GOTO Target Not Found Error

You used a label in a GOTO statement that is not used in the method. Therefore, the jump could not be executed.


Example

The example from the GOTO keyword is modified so that there is no code that is identified by the label used in the GOTO statement.

If checkbox1.value then
 GOTO myCode
End If

//Return used to keep RB from executing the labelled statement anyway
Return
  myLabel: //does not match label in GOTO
   MsgBox "Unstructured programming is bad"

See Also

GOTO statement.